//
//  HomeWebViewController.swift
//  SinaBlog
//
//  Created by macs on 15/11/22.
//  Copyright © 2015年 BlackTail. All rights reserved.
//

import UIKit

class HomeWebViewController: UIViewController {

    
    var urlString : String?
    lazy var webView = UIWebView()
    
    override func loadView() {
        view = webView
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        if let url = NSURL(string: urlString ?? "") {
            
            let request = NSURLRequest(URL: url)
            
            webView.loadRequest(request)
        }
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    
}
